<div class="dialog-container mdl-shadow--8dp mdl-layout--fixed-header SMES-dialog abnormal_detail" style="background-color: #fafafa; ">
    <div class="kmi-header-row">
        <div class="header-title" ng-bind="'common.abnormal_detail.title' | translate"></div>
        <div class="kmi-side-btn right" ng-click="dialog.back();">
            <img src="image/icons/clear.png"></img>
            <div class="kmi-can-click"></div>
        </div>
    </div>
    <div class="kmi-layout-main-content">
        <div class="kmi-layout-page">
            <div class="kmi-text-fields">
                <label class="label" ng-bind="'common.abnormal_detail.plot_no'|translate"></label>
                <label style="flex:1;" ng-bind="dialog.plotInfo.plot_no"></label>
                <label class="label" ng-bind="'common.abnormal_detail.abnormal_type' | translate" style="width:150px; text-align:right;"></label>
                <input ng-model="dialog.abnormal_type_name" ng-click="dialog.loadBadTypeList()" readonly="readonly" style="margin: 0 37px 0 0;">
                <div class="tip" style="right: 65px;"><i class="material-icons">&#xE5CF;</i></div>
            </div>
            <div class="kmi-text-fields">
                <label class="label" ng-bind="'common.abnormal_detail.abnormal_name' | translate"></label>
                <input ng-model="dialog.abnormal_name" ng-click="dialog.loadBadReasonList()" readonly="readonly">
                <div class="tip"><i class="material-icons">&#xE5CF;</i></div>
                <label class="label" ng-bind="'common.abnormal_detail.defect_qty' | translate" style="width:150px; text-align:right; margin-left:-18px"></label>
                <input ng-model="dialog.defect_qty" mdl-calculater="dialog.defect_qty" mdl-calculater-decimal="true">
                <button style="margin-left: 5px;" class="mdl-button mdl-js-button mdl-button--icon mdl-button--icon_prime" ng-click="dialog.add();">
                    <img src="image/icons/add.png"></img>
                </button>
            </div>
            <div class="kmi-list">
                <div class="kmi-list__header">
                    <!-- <div class="kmi-list__column" style="flex:1;" ng-bind="'B0206.trackOut.prodPatchNo1' | translate" ></div> -->
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'common.abnormal_detail.list.column1' | translate" ></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'common.abnormal_detail.list.column2' | translate" ></div>
                    <div class="kmi-list__column" style="flex:0 0 104px;" ng-bind="'common.abnormal_detail.list.column3' | translate" ></div>
                    <div class="kmi-list__column" style="flex:0 0 104px;" ng-bind="'common.abnormal_detail.list.column4' | translate" ></div>
                    <div class="kmi-list__column" style="flex:0 0 32px;"></div>
                </div>
                <div class="kmi-list__row-content">
                    <div class="kmi-list__row" ng-repeat="item in dialog.plotInfo.abnormal_detail track by $index">
                        <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.abnormal_type_name"></div>
                        <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.abnormal_name"></div>
                        <div class="kmi-list__column column-border" style="flex:0 0 104px;" ng-bind="item.abnormal_no"></div>
                        <div class="kmi-list__column" style="flex:0 0 104px;" ng-bind="item.defect_qty"></div>
                        <button class="mdl-button mdl-js-button mdl-button--icon" ng-click="dialog.remove($index);">
                            <img  src="image/icons/delete1.png"></img>
                        </button>
                    </div>
                </div>
            </div>
            <div class="search-tool">
                <div class="kmi-button kmi-button-confrim btn-confirm" ng-click="dialog.confirm()"  style="width:100px">
                    <label ng-bind="'B0206.confirm' | translate"></label>
                    <div class="kmi-can-click" ></div>
                </div>
            </div>
        </div>
    </div>
</div>
